home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 3 / BBS in a box - Trilogy III.iso / Files / Prog / D-G / GemsI / Original / BUGS < prev    next >
Encoding:
Text File  |  1992-06-16  |  3.0 KB  |  101 lines  |  [TEXT/MPS ]

  1. This file lists all of the known typos and bugs in the code as
  2. it appears in this directory and the book "Graphics Gems".
  3.  
  4. Many of the fixes listed here aren't really "bugs" or "typos", as
  5. several of the gems were not meant to be compilable.
  6.  
  7. (Note that for the moment, the file names listed here are the "new"
  8. names.)
  9.  
  10. AAPolyScan.c
  11.     line 19: SYBYRES should be SUBYRES
  12.     line 22: bad space after "MODRES"
  13.     line 48: XRmax should be xRmax
  14.     line 96: should read "y=Vleft->y" rather than "y+Vleft->y"
  15.     line 99: should read "VnextLeft = (Vleft=VnextLeft) + 1;"
  16.     line 184: missing semicolon
  17.     line 196: 'O' should be '0'
  18.     line 237: 'O' should be '0'
  19. Albers.c
  20.     line 47: spurious ')'
  21.     line 102: "con_const" should be "cone_const"
  22.     line 123: missing '}'
  23. BoundSphere.c
  24.     line 19: Point3Struct already declared in GraphicsGems.h
  25. BoxSphere.c
  26.     line 6: missing inclusion of GraphicsGems.h.
  27. Dissolve.c
  28.     pseudo-code at head of file commented out
  29.     line 14: missing "int randmasks[32];"
  30. FastJitter.c
  31.     line 16: missing end-of-comment
  32. FitCurves.c
  33.     line 37: add dummy DrawBezierCurve() in order to check compilation
  34. FixedTrig.c
  35.     line 46: missing ';'
  36. Forms.c
  37.     line 24: bad start-of-comment
  38. GGVecLib.c
  39.     line 7: #included math.h
  40.     line 148: V2MulPointByMatrix: use temp. Point2 to hold intermediate
  41.           results
  42.     line 331: V3MulPointByMatrix: use temp. Point3 to hold intermediate
  43.           results
  44. GraphicsGems.h
  45.     line 146: declared functions from GGVecLib.c
  46. Hash3D.c
  47.     line 23: ABS() conflicts with ABS() in GraphicsGems.h -- ranamed
  48.          IABS()
  49.     line 24: TRUE already defined in GraphicsGems.h
  50.     line 25: FALSE already defined in GraphicsGems.h
  51.     line 67: replace ABS() with IABS()
  52.     line 68: repalce ABS() with IABS()
  53.  
  54. LineEdge.c
  55.     Can't use "const" as a variable name, as it is a reserved word in
  56.     ANSI C.  Use "liconst" instead.
  57. MatrixInvert.c
  58.     line 6:  define SMALL_NUMBER to test compilation
  59.     line 33: "out" should be "in" 
  60.     'matrix4' should be 'Matrix4' throughout
  61. OrderDither.c
  62.     line 32: ':' should be ';'
  63.     line 65: "l * 1" should be "l * l"
  64. Quaternions.c
  65.     line 6: declare P, Q, and M as externs to test compilation
  66. RayBox.c
  67.     line 28: 'O' should be '0'
  68. Roots3And4:
  69.     line 28:  declare sqrt(), cbrt(), cos(), acos() extern double
  70.     line 214: should read coeffs[ 1 ] = q < 0 ? -v : v;
  71.     line 220: should read coeffs[ 1 ] = q < 0 ? v : -v;
  72. SquareRoot.c
  73.     line 22: add space around '=', as some compilers assume "=&" means "&="
  74.     line 49: '{' should be '['
  75. TransBox.c
  76.     line 8: bad start-of-comment
  77. TriPoints.c
  78.     line 7: #included math.h    
  79.     line 49: bad end-of comment; delete '/'
  80.  
  81. 2DClip:
  82. bio.c
  83.     line 8: add #include "GraphicsGems.h"
  84. clip.c
  85.     line 6: add #include "GraphicsGems.h"
  86.     line 127: missing semicolon
  87. cross.c
  88.     line 7: add #include "GraphicsGems.h"
  89.  
  90. PolyScan:
  91. fancytest.c:
  92.     line 29: should be:
  93.         static Poly_box box = {0, XMAX, 0, YMAX, -32678, 32767.99};
  94.     line 34: commented out "< ... >" lines to facilitate testing
  95.     line 84: missing '{'
  96. poly_clip.c:
  97.     line 120: insert statement: up = (double *)u;
  98. scantest.c:
  99.     line 20: pixelproc() should be "static void"
  100.  
  101.